<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增物品信息')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-product-add">
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">主键：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="productGuid" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">物资编码：</label>
            <div class="col-sm-8">
                <input name="productId" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">存货大类编码：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="parentId" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">物料分类：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="productClassification" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">物资名称：</label>
            <div class="col-sm-8">
                <input name="productName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">规格：</label>
            <div class="col-sm-8">
                <input name="model" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">物料规格：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="spec" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">物料简称：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="simpleName" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">原系统编码：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="originalSystemCode" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">是否可用：</label>
            <div class="col-sm-8">
<!--                <input name="productsUsingFinished" class="form-control" type="text">-->
                <select type="text"class="form-control" name="useable">
                    <option value="">---请选择---</option>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">单位：</label>
            <div class="col-sm-8">
                <input name="productUnit" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">是否分比例号：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="proportionNum" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">比例号：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="proportions" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">主仓库：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="mainWarehouse" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">是否质检：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="inspection" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">物料类型：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="productMaterial" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="remark" class="form-control" type="text">
            </div>
        </div>
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label">：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="spare1" class="form-control" type="text">-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label">：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="spare2" class="form-control" type="text">-->
        <!--                </div>-->
        <!--            </div>-->
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "bas/product"
    $("#form-product-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-product-add').serialize());
        }
    }
</script>
</body>
</html>